package per.hx.bs.yw.dao;

import org.springframework.stereotype.Component;
import per.hx.bs.base.dao.CrudDao;
import per.hx.bs.entity.sys.SysUserDO;
import per.hx.bs.entity.yw.YwAppraisalUserDO;
import per.hx.bs.vo.AppraisalUserVO;

import java.util.List;
import java.util.Map;

/**
 * @author HuXing
 * @date 2018/4/16  8:06
 */
@Component
public interface YwAppraisalUserDao extends CrudDao<YwAppraisalUserDO> {
    /**
     * 获取考核用户
     *
     * @return 用户
     */
    List<SysUserDO> appraisalUser(Map<String, Object> map);

    /**
     * 获取人员信息
     *
     * @param map
     * @return 查询结果
     */
    List<AppraisalUserVO> userList(Map<String, Object> map);

    /**
     * 统计 人员信息
     *
     * @param map
     * @return 数量
     */
    int userCount(Map<String, Object> map);
}
